from django.urls import path, register_converter

from apps.user.views import RegisterView, UsernameCountView

from utils.converters import UsernameConverter

register_converter(UsernameConverter, 'uname')
urlpatterns = [
    path('usernames/<uname:username>/count/', UsernameCountView.as_view()),
    path('register/', RegisterView.as_view())
]
